package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.CurriculumCategoryDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CurriculumCategoryService {
   
    ActionResult<String> delete(String id);

    ActionResult<String> update(CurriculumCategoryDTO dto);

    ActionResult<CurriculumCategoryDTO> get(String id);

    ActionResult<String> up(String id);

    ActionResult<String> down(String id);

    ActionResult<List<CurriculumCategoryDTO>> list(String parentId);

    ActionResult<Pagination<CurriculumCategoryDTO>> page(String parentId, Integer pageNo, Integer pageSize);

    ActionResult<String> refresh(String id);

    ActionResult<List<CurriculumCategoryDTO>> listAll();

    ActionResult<CurriculumCategoryDTO> add(MultipartFile file, String name, String parentId, String intro, Boolean leaf);
}
